import chalk from 'chalk'

export class Logger {
  constructor(verbose = false) {
    this.verbose = verbose
  }

  info(message) {
    console.log(chalk.blue('ℹ'), message)
  }

  success(message) {
    console.log(chalk.green('✅'), message)
  }

  warn(message) {
    console.log(chalk.yellow('⚠️'), message)
  }

  error(message) {
    console.log(chalk.red('❌'), message)
  }

  debug(message) {
    if (this.verbose) {
      console.log(chalk.gray('🔍'), message)
    }
  }
}
